//
//  InvokeMethodManager.m
//  Project
//
//  Created by liting on 2025/9/12.
//

#import "FlutterChannelManager.h"

@interface FlutterChannelManager ()

@property (nonatomic, strong) FlutterMethodChannel *methodChannel;

@end

@implementation FlutterChannelManager

#pragma mark - 单例实现

+ (instancetype)sharedManager {
    static FlutterChannelManager *sharedInstance = nil;
    static dispatch_once_t onceToken;
    dispatch_once(&onceToken, ^{
        sharedInstance = [[self alloc] init];
    });
    return sharedInstance;
}


/// 传递参数方法
- (void)setupParams:(FlutterMethodChannel *)channel arguments:(NSDictionary *)arguments{
    [channel invokeMethod:@"initialParams" arguments:arguments];
}

/// 调用nativePop方法
- (void)invokeNativePop:(FlutterMethodChannel *)channel{
    [channel invokeMethod:@"nativePop" arguments:nil];
}

@end
